package com.medical.literature.search.dto;

import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 搜索结果项DTO
 */
@Data
public class SearchResultItem {
    
    private Long id;
    private String title;
    private String authors;
    private String abstractText;
    private String keywords;
    private String journal;
    private LocalDate publicationDate;
    private String doi;
    private String fileName;
    private Long fileSize;
    private String fileType;
    private Integer status;
    private Integer recognitionStatus;
    private Long uploadUserId;
    private String uploadUserName;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Boolean isFavorite;
    
    /**
     * 搜索相关性评分
     */
    private Double relevanceScore;
    
    /**
     * 高亮字段
     */
    private HighlightFields highlight;
    
    @Data
    public static class HighlightFields {
        private String title;
        private String abstractText;
        private String keywords;
        private String authors;
    }
}